﻿<%@ Page CodeFileBaseClass="AliCMS.Lib.SystemPageBase" %>
<ali:Get ID="Link" Object="Link" InnerID="Request.QueryString['ID']" Validate="True" />
<section data-page="link_edit" data-title="编辑链接" data-lang="<%=ContentLang%>" data-id="<%=Request.QueryString['ID']%>" data-style="<%=HttpUtility.HtmlEncode(Convert.ToString(Link[Style]))%>">
	<dl class="path1">
		<dt><span>您的位置：</span><a href="list.aspx?Lang=<%=ContentLang%>" target="ali-navtab">链接列表</a> → <b class="<%=ContentLang%>Font"><%=Link[Name]%></b></dt>
		<dd>
			<select data-class="<%=ContentLang%>Font" data-ali-widget="combo">
				<ali:List Object="Language" Source="Manager.Languages">
					<ali:Record>
						<%If Convert.ToString(Ab) == ContentLang%>
							<option value="<%=Ab%>" selected><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%Else%>
							<option value="<%=Ab%>"><%=[AliCMS.SystemModule.Alias.Language.Name + PageLang]%></option>
						<%EndIf%>
					</ali:Record>
				</ali:List>
			</select>
		</dd>
	</dl>
	<form action="" class="post">
		<div class="post-body">
			<table class="post-table margin2">
				<tr>
					<th width="120">标题：</th>
					<td>
						<input type="text" name="Name" value="<%=Link[Name]%>" size="60" maxlength="255" class="ali-input ali-input-required <%=ContentLang%>Font">
						<label><input type="checkbox" data-name="Bold">粗体</label>
						<label><input type="checkbox" data-name="Italic">斜体</label>
						颜色：<button type="button" data-name="Color" size="8" class="color-selector"></button>
						<label><input type="checkbox" data-name="Custom">自定</label>
						<input type="text" data-name="CustomStyle" size="40" style="display:none">
					</td>
				</tr>
				<tr>
					<th>类别：</th>
					<td>
						<select name="CategoryID" data-class="<%=ContentLang%>Font" data-tree="true" data-root="" data-ali-widget="combo">
							<option data-item="" data-parent="" value="">未指定</option>
							<ali:Tree Object="LinkCategory">
								<ali:Record>
									<%If Guid.Equals(ID, Link[CategoryID])%>
										<option data-item="<%=InnerID%>" data-parent="<%=ParentInnerID%>" value="<%=ID%>" selected><%=Name%></option>
									<%Else%>
										<option data-item="<%=InnerID%>" data-parent="<%=ParentInnerID%>" value="<%=ID%>"><%=Name%></option>
									<%EndIf%>
									<%=ChildRecords%>
								</ali:Record>
							</ali:Tree>		
						</select>
					</td>
				</tr>
				<tr>
					<th>网址：</th>
					<td><input type="text" name="URL" value="<%=Link[URL]%>" size="60" maxlength="255" class="ali-input"></td>
				</tr>
				<tr>
					<th>Logo：</th>
					<td><input type="text" name="Logo" value="<%=Link[Logo]%>" size="60" class="ali-input"><a class="ali-button ali-uploader">浏览...</a><a href="" target="_blank"><img src="" height="22" alt="图片"></a></td>
				</tr>
				<tr>
					<th>Email：</th>
					<td><input type="text" name="Email" value="<%=Link[Email]%>" size="30" maxlength="50"  class="ali-input"></td>
				</tr>
				<tr>
					<th>QQ：</th>
					<td><input type="text" name="QQ" value="<%=Link[QQ]%>" size="30" maxlength="50"  class="ali-input"></td>
				</tr>
				<tr>
					<th>电话：</th>
					<td><input type="text" name="Phone" value="<%=Link[Phone]%>" size="30" maxlength="50"  class="ali-input"></td>
				</tr>
				<tr>
					<th>简介：</th>
					<td><textarea cols="60" rows="5" name="Description" class="Text <%=ContentLang%>Font"><%=Link[Description]%></textarea></td>
				</tr>
			</table>
		</div>
		<div class="post-footer"><button type="submit" class="ali-button">保 存</button><input type="hidden" name="PictureAllowedType" value="gif|jpg|jpeg|png|bmp|png"></div>
	</form>
</section>